home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / intmail2 / wserr.inc < prev    next >
Encoding:
Text File  |  1999-07-20  |  3.7 KB  |  94 lines

  1. #include "msconst.pas"
  2. #define WSABASEERR              10000+MSWSSHIFT
  3.  
  4. #define WSAEINTR                (WSABASEERR+4)
  5. #define WSAEBADF                (WSABASEERR+9)
  6. #define WSAEACCES               (WSABASEERR+13)
  7. #define WSAEFAULT               (WSABASEERR+14)
  8. #define WSAEINVAL               (WSABASEERR+22)
  9. #define WSAEMFILE               (WSABASEERR+24)
  10.  
  11.  
  12. //  Windows Sockets definitions of regular Berkeley error
  13. //  constants
  14.  
  15. #define WSAEWOULDBLOCK          (WSABASEERR+35)
  16. #define WSAEINPROGRESS          (WSABASEERR+36)
  17. #define WSAEALREADY             (WSABASEERR+37)
  18. #define WSAENOTSOCK             (WSABASEERR+38)
  19. #define WSAEDESTADDRREQ         (WSABASEERR+39)
  20. #define WSAEMSGSIZE             (WSABASEERR+40)
  21. #define WSAEPROTOTYPE           (WSABASEERR+41)
  22. #define WSAENOPROTOOPT          (WSABASEERR+42)
  23. #define WSAEPROTONOSUPPORT      (WSABASEERR+43)
  24. #define WSAESOCKTNOSUPPORT      (WSABASEERR+44)
  25. #define WSAEOPNOTSUPP           (WSABASEERR+45)
  26. #define WSAEPFNOSUPPORT         (WSABASEERR+46)
  27. #define WSAEAFNOSUPPORT         (WSABASEERR+47)
  28. #define WSAEADDRINUSE           (WSABASEERR+48)
  29. #define WSAEADDRNOTAVAIL        (WSABASEERR+49)
  30. #define WSAENETDOWN             (WSABASEERR+50)
  31. #define WSAENETUNREACH          (WSABASEERR+51)
  32. #define WSAENETRESET            (WSABASEERR+52)
  33. #define WSAECONNABORTED         (WSABASEERR+53)
  34. #define WSAECONNRESET           (WSABASEERR+54)
  35. #define WSAENOBUFS              (WSABASEERR+55)
  36. #define WSAEISCONN              (WSABASEERR+56)
  37. #define WSAENOTCONN             (WSABASEERR+57)
  38. #define WSAESHUTDOWN            (WSABASEERR+58)
  39. #define WSAETOOMANYREFS         (WSABASEERR+59)
  40. #define WSAETIMEDOUT            (WSABASEERR+60)
  41. #define WSAECONNREFUSED         (WSABASEERR+61)
  42. #define WSAELOOP                (WSABASEERR+62)
  43. #define WSAENAMETOOLONG         (WSABASEERR+63)
  44. #define WSAEHOSTDOWN            (WSABASEERR+64)
  45. #define WSAEHOSTUNREACH         (WSABASEERR+65)
  46. #define WSAENOTEMPTY            (WSABASEERR+66)
  47. #define WSAEPROCLIM             (WSABASEERR+67)
  48. #define WSAEUSERS               (WSABASEERR+68)
  49. #define WSAEDQUOT               (WSABASEERR+69)
  50. #define WSAESTALE               (WSABASEERR+70)
  51. #define WSAEREMOTE              (WSABASEERR+71)
  52.  
  53.  
  54. // Extended Windows Sockets error constant definitions
  55.  
  56. #define WSASYSNOTREADY          (WSABASEERR+91)
  57. #define WSAVERNOTSUPPORTED      (WSABASEERR+92)
  58. #define WSANOTINITIALISED       (WSABASEERR+93)
  59. #define WSAEDISCON            (WSABASEERR+94)
  60.  
  61. //
  62. // Error return codes from gethostbyname() and
  63. //  gethostbyaddr()
  64. // (when using the resolver). Note that these errors are
  65. // retrieved via WSAGetLastError() and must therefore follow
  66. // the rules for avoiding clashes with error numbers from
  67. // specific implementations or language run-time systems.
  68. // For this reason the codes are based at WSABASEERR+1001.
  69. // Note also that [WSA]NO_ADDRESS is defined only for
  70. // compatibility purposes.
  71. //
  72.  
  73. #define h_errno         WSAGetLastError()
  74.  
  75. // Authoritative Answer: Host not found
  76. #define WSAHOST_NOT_FOUND       (WSABASEERR+1001)
  77. #define HOST_NOT_FOUND          WSAHOST_NOT_FOUND
  78.  
  79. // Non-Authoritative: Host not found, or SERVERFAIL
  80. #define WSATRY_AGAIN            (WSABASEERR+1002)
  81. #define TRY_AGAIN               WSATRY_AGAIN
  82.  
  83. // Non-recoverable errors, FORMERR, REFUSED, NOTIMP
  84. #define WSANO_RECOVERY          (WSABASEERR+1003)
  85. #define NO_RECOVERY             WSANO_RECOVERY
  86.  
  87. // Valid name, no data record of requested type
  88. #define WSANO_DATA              (WSABASEERR+1004)
  89. #define NO_DATA                 WSANO_DATA
  90.  
  91. // no address, look for MX record
  92. #define WSANO_ADDRESS           WSANO_DATA
  93. #define NO_ADDRESS              WSANO_ADDRESS
  94.